﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="EvalResult.aspx.cs" Inherits="LabMS.Web.LabEvaluation.EvalResult" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>实验室评估结果</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <script src="../js/Common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript" language="javascript">
         function add()
        {
            window.location.href='./AddLabEvaluation.aspx';
        }
        function modify()
        {
            openNewWin('./ModifyLabEvaluation.aspx?KindID='+$("#KindDDL").val()+'&TitleID='+$("#TitleDDL").val()+'&LabID='+$("#LabDDL").val()+'&EvTimeID='+$("#DateDDL").val(),800,700)
        }
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>实验室评估结果信息</label>
                </div>
            </div>
        </div>
        <div style="padding: 5px;" class="main">
            <p>
                <input id="addbtn" runat="server" value="进行新自评" type="button" onclick='add()' class="button" />
                <input id="mondifybtn" runat="server" value="修改" type="button" onclick='modify()'
                    class="button" />
                <asp:Button ID="DeleteBtn" runat="server" Text="删除" OnClick="Delete_OnClick" CssClass="button" /><%--
                <asp:Button ID="Button1" runat="server" Text="打印" CssClass="button" />
                <asp:Button ID="Button2" runat="server" Text="页面设置" CssClass="button" />
                <asp:Button ID="Button3" runat="server" Text="打印预览" CssClass="button" />--%>
            </p>
            <p>
                评估对象：
                <asp:DropDownList ID="LabDDL" runat="server" AutoPostBack="true" OnSelectedIndexChanged="LabDDL_OnSelectIndexChange"
                    DataTextField="Lab_Name" DataValueField="ID">
                </asp:DropDownList>
                评估标准：
                <asp:DropDownList ID="KindDDL" runat="server" DataTextField="Name" DataValueField="Code"
                    AutoPostBack="true" OnSelectedIndexChanged="KindDDL_OnSelectIndexChange">
                </asp:DropDownList>
                评估主题：
                <asp:DropDownList ID="TitleDDL" runat="server" DataTextField="Title_Name" DataValueField="ID"
                    AutoPostBack="true" OnSelectedIndexChanged="TitleDDL_OnSelectIndexChange">
                </asp:DropDownList>
                评估时间：
                <asp:DropDownList ID="DateDDL" runat="server" DataTextField="Date" DataValueField="EvTime"
                    AutoPostBack="true" OnSelectedIndexChanged="DateDDL_OnSelectIndexChange">
                </asp:DropDownList>
            </p>
        </div>
        <div class="main">
            <asp:GridView ID="EvalResultGridView" CssClass="infoTable" DataKeyNames="ID" AutoGenerateColumns="false"
                Width="100%" runat="server">
                <Columns>
                    <asp:BoundField DataField="St_Num" HeaderText="序号" HtmlEncode="false" />
                    <asp:BoundField DataField="St_Content" HeaderText="评估内容" />
                    <asp:TemplateField HeaderText="评估标准">
                        <ItemTemplate>
                            <asp:Label ID="StandardTBX" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "St_Standard")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评估方式">
                        <ItemTemplate>
                            <asp:Label ID="MethodTBX" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "St_Method")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="自评依据">
                        <ItemTemplate>
                            <asp:Label ID="StandardTBX" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Comment")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="自评结果">
                        <ItemTemplate>
                            <asp:Label ID="resultTBX" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Result").ToString()=="1"?"Y":"N" %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="备注">
                        <ItemTemplate>
                            <asp:Label ID="StandardTBX" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Remark")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    暂无信息
                </EmptyDataTemplate>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
        </div>
    </form>

    <script type="text/javascript">
        $(function(){
            /* 修改样式 */
            $("#EvalResultGridView > tbody > tr:even").not(":first").addClass("even");
            $("#EvalResultGridView > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
        });
    </script>

</body>
</html>
